set nocompatible              " be iMproved, required
filetype off                  " required

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')

" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'

" Lightline
Plugin 'itchyny/lightline.vim'

" Calendar
Plugin 'itchyny/calendar.vim'

" Colorschemes
Plugin 'flazz/vim-colorschemes'
Plugin 'arcticicestudio/nord-vim'

" fzf
Plugin 'junegunn/fzf'

" Markdown
Plugin 'gabrielelana/vim-markdown'

" Install L9 and avoid a Naming conflict if you've already installed a
" different version somewhere else.
" Plugin 'ascenator/L9', {'name': 'newL9'}

" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required
" To ignore plugin indent changes, instead use:
"filetype plugin on

" Vim-markdown configuration
let g:vim_markdown_folding_disabled = 1
set conceallevel=2

" Stuff for lightline
set laststatus=2
set timeoutlen=1000 ttimeoutlen =0

" Aesthetic
set number
set relativenumber
colo molokai
set tabstop=4
set shiftwidth=4
syntax on
set nocompatible
set scrolloff=8

" Netrw aesthetic
let g:netrw_banner = 0
let g:netrw_liststyle = 3
let g:netrw_browse_split = 4
let g:netrw_altv = 1
let g:netrw_winsize = 15
augroup ProjectDrawer
		  autocmd!
		    autocmd VimEnter * :Vexplore
	augroup END

" Keyboard shortcuts

" Switch between different windows by their direction

no <C-j> <C-w>j 

no <C-k> <C-w>k 

no <C-l> <C-w>l 

no <C-h> <C-w>h 

" map CTRL-E to end-of-line (insert mode)

imap <C-e> <esc>$i<right>

" map CTRL-A to beginning-of-line (insert mode)
imap <C-a> <esc>0i

" map semi-colon to colon for quick commands
map ; :

" map movement to move up single lines
map j gj
map k gk

inoremap jk <esc>

" Switch to the right window (the file)
au VimEnter * wincmd l
